/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bd.balancer;
import java.net.*;
import java.util.*;
import bd.artefacts.*;
import javax.xml.namespace.QName;
/**
 *
 * @author niyaz
 */
public class Cluster {

    String masterAddress;
    bd.artefacts.Master master;
    ArrayList<InetSocketAddress> slaves;

    public long startHash;
    public long stopHash;

    public boolean connect()
    {
        try{
        MasterService serv = new MasterService(new URL(masterAddress),  new QName("http://master.bd/", "MasterService"));
        master =  serv.getMasterPort();
        return true;
        } catch (Exception e)
        {
        System.out.print("Some fucking problems");
        try{
        System.in.read();
        } catch (Exception e2) {};
        
        }
        return false;
    };






}
